package com.qst.rongxiaoserver.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// Swagger配置类   配置Swagger的信息   生成API文档
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("基于数字经济的农产品融销一体平台")
                        .version("1.0")
                        .description("基于数字经济的农产品融销一体平台的API文档"));
    }
}
